// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// 所有ant-design全部引入了
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
Vue.use(Antd);

// 引入echarts
let echarts = require('echarts')
Vue.prototype.$echarts = echarts  // 组件对象.$echarts 方便使用

// 配置
import settings from './settings'
Vue.prototype.$settings = settings

// 引入axios
import axios from 'axios'
Vue.prototype.$axios = axios // 原型链形式挂载到vue中，后面通过组件对象可以直接调动axios的功能

Vue.config.productionTip = false

// xterm引入
import 'xterm/css/xterm.css'
import 'xterm/lib/xterm'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
